package com.ai.service.made.impl;

import com.ai.entity.exam.MirrorExam;
import com.ai.entity.exam.MirrorExamOption;
import com.ai.mapper.made.MirrorExamMapper;
import com.ai.mapper.made.MirrorExamOptionMapper;
import com.ai.service.made.MirrorExamOptionService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * 单选、多选题的选项(MirrorExamOption)表服务实现类
 *
 * @author makejava
 * @since 2024-07-01 18:08:15
 */
@Service
public class MirrorExamOptionServiceImpl extends ServiceImpl<MirrorExamOptionMapper, MirrorExamOption> implements MirrorExamOptionService {

    @Override
    public List<MirrorExamOption> selectByQuestionsId(Integer questionsId) {
        QueryWrapper<MirrorExamOption>queryWrapper=new QueryWrapper<>();

        queryWrapper.eq("question_id",questionsId);

        return this.list(queryWrapper);
    }
}
